<!DOCTYPE html>
<html> 
<body>

<h2>JavaScript Arrays</h2>

<p>The push method appends a new element to an array.</p>

<button onclick="myFunction()">Try it</button>

<p id="demo"></p>

<script>
var fruits = ["Banana", "Orange", "Apple", "Mango"];
document.getElementById("demo").innerHTML = fruits;

function myFunction() {
  fruits.push("Lemon");
  document.getElementById("demo").innerHTML = fruits;
}
</script>
<br> 
<center>
<p> Creater By <b> Sanusanth </b> </p> 
<a href="https://github.com/sanusanth">Visit Sanusanth</a>
</center>
</body>
</html>

